package o;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import o.bqf.b;

class bpb {
    private int ˊ;
    private String ˎ;
    private int ˏ;
    private bqf ॱ;

    bpb() {
    }

    bpb ˏ(String str) {
        this.ˎ = str;
        return this;
    }

    bpb ॱ(int i) {
        this.ˊ = i;
        return this;
    }

    bpb ˊ(bqf o_bqf) {
        this.ॱ = o_bqf;
        return this;
    }

    bpb ˏ(int i) {
        this.ˏ = i;
        return this;
    }

    String ˏ() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(this.ˎ).append(';');
        stringBuilder.append(this.ˊ).append(';');
        if (this.ॱ != null) {
            ArrayList arrayList = new ArrayList(this.ॱ.ˋ());
            Collections.sort(arrayList, ॱ());
            for (int i = 0; i < arrayList.size(); i++) {
                b bVar = (b) arrayList.get(i);
                stringBuilder.append(bVar.ˎ()).append(':').append(bVar.ˋ()).append(';');
            }
        }
        stringBuilder.append(this.ˏ).append(';');
        return bkq.ˋ(bkn.ॱ(stringBuilder.toString()));
    }

    private static Comparator<b> ॱ() {
        return new Comparator<b>() {
            public /* synthetic */ int compare(Object obj, Object obj2) {
                return ˊ((b) obj, (b) obj2);
            }

            public int ˊ(b bVar, b bVar2) {
                return (bVar.ˎ() + ':' + bVar.ˋ()).compareTo(bVar2.ˎ() + ':' + bVar2.ˋ());
            }
        };
    }
}
